<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>历史列表</title>
</head>
<body>


<span th:if="${shoppingNameList==null||#lists.size(shoppingNameList)==0}">
    您还没有浏览过任何商品，<a th:href="@{/shopping(method=toShoppingListPage)}">去看看!</a>
</span>

<span th:unless="${shoppingNameList==null||#lists.size(shoppingNameList)==0}">
    商品浏览记录如下：<br>
    <ul>
        <li th:each="shoppingName:${shoppingNameList}" th:text="${shoppingName}"></li>
    </ul>

</span>


</body>
</html>